<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<title>Wireframe</title>
		<link rel="stylesheet" href="<?php echo site_url("/jqueryui/css/ui-lightness/jquery-ui-1.8.18.custom.css"); ?>" type="text/css">
		<link rel="stylesheet" href="<?php echo site_url("/bootstrap/css/bootstrap.css"); ?>" type="text/css">
		<link rel="stylesheet" href="<?php echo site_url("/datatables/media/css/jquery.dataTables.css"); ?>" type="text/css">
		<script type="text/javascript" language="javascript" src="<?php echo site_url("/jquery/jquery-1.7.1.min.js"); ?>"></script>
		<script type="text/javascript" language="javascript" src="<?php echo site_url("/bootstrap/js/bootstrap.js"); ?>"></script>
		<script type="text/javascript" language="javascript" src="<?php echo site_url("/datatables/media/js/jquery.dataTables.min.js"); ?>"></script>
		<script type="text/javascript" charset="utf-8">
			$(document).ready(function()
			{
				$('#payment-table').dataTable({
					"aoColumnDefs": [
						{ "bSortable": false, "sWidth": "25%", "aTargets": [ 3 ]}
					],
					"bProcessing": true,
					"bServerSide": true,
					"sAjaxSource": "<?php echo site_url('paymentaccounts/getpaymentaccounts') ?>",
					"fnServerData" : function (sSource, aoData, fnCallback)
					{
						$.ajax(
						{
							"dataType": "json",
							"type": "POST",
							"url": sSource,
							"data": aoData,
							"success": fnCallback
						});
					}
				});
			});
		</script>
	</head>
	<body>
		<?php $this->load->view('v_navbar'); ?>
		<div class="container">
			<div class="row">
				<div class="span12 ui-corner-all">
					<div class="well">
						<h1>Payment Account Information</h1>
						<p>
						This page lists information about your payment accounts.
						</p>
						<table id="payment-table">
							<thead>
								<tr>
									<th>Name</th>
									<th>Type</th>
									<th>Number</th>
									<th></th>
									<!--td><a class="btn" href="<?php echo site_url("/editpaymentaccount"); ?>">View/Change</a> | 
									<a class="btn" href="<?php echo site_url("/confirmdeletepaymentaccount"); ?>">Delete</a></td-->
								</tr>
							</thead>
							<tbody>
							</tbody>
						</table>
					</div>
					<form name="add" id="add" action="<?php echo site_url("/editpaymentaccount/index/0"); ?>" method="post">
					<input type="submit" value="Add account" />
					</form>
				</div>
			</div>
		</div>
	</body>
</html>